package jude.java.money.spring;

import javax.servlet.ServletException;

import jude.java.util.Log;

import org.springframework.context.ApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;


public class ContextLoaderServlet extends
		org.springframework.web.context.ContextLoaderServlet {

	private static final long serialVersionUID = -6245268748377048430L;

	public void init() throws ServletException {
		super.init();
		ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
		ContextHolder.setApplicationContext(context);
		ContextHolder.setContextPath(getServletContext().getContextPath());
		Log.e(ContextHolder.getContextPath());
	}
}
